package com.zhyz.bookstore.service;

import com.zhyz.bookstore.entity.Admin;
import com.zhyz.bookstore.entity.Book;
import com.zhyz.bookstore.entity.Category;
import com.zhyz.bookstore.entity.User;

import java.util.List;

public interface ManagerService {
    Admin login(String username, String password);

    void addCategory(Category category);
    List<Category> getAllCatrgory();
    Category getCategory(String CategoryId);
    void upCategory(Category category);
    void delCategroy(String CategoryId);
    void addBooks(Book book);
    Book getBooks(String BookId);
    void upBook(String BookId, String book_name, String book_author, String book_press, String book_desc,
                double book_price, String book_kunumber);
    void delBook(String bookId);
    List<Book> getCategoryBook(String cid);

    void addAdmin(Admin admin);

    void managerPassword(String username, String password);

    void managerInformation(String username, String name, String sex, String tel);

    //用户信息管理
    List<User> findUsers();

    void delUser(String user_id);
}
